<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>18_flex布局</title>
    <link rel="stylesheet" href="./css/basic.css" />
    <style>
      .container_row {
        display: flex;
        flex-direction: row;
        /* 居中对齐 */
        /* justify-content: center; */
        /* 两头对齐 */
        /* justify-content: space-between; */
        /* 均分 */
        /* justify-content: space-evenly; */
        /* 间隔相等 */
        justify-content: space-around;
        width: 100vw;
        height: 50vh;
        background-color: bisque;
      }
      .row_item {
        width: 10vw;
        height: 100px;
        background-color: pink;
        margin: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        color: white;
      }
      .container_row :nth-child(1) {
        flex: 1;
      }
      .container_row :nth-child(6),
      :nth-child(3) {
        flex: 1;
      }
      .row_item:nth-child(3) {
        align-self: flex-end;
      }
    </style>
  </head>
  <body>
    <h1>flex横向布局</h1>
    <div class="container_row">
      <div class="row_item">1</div>
      <div class="row_item">2</div>
      <div class="row_item">3</div>
      <div class="row_item">4</div>
      <div class="row_item">5</div>
      <div class="row_item">6</div>
    </div>
  </body>
</html>
